home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / otis.gsh < prev    next >
Text File  |  2000-09-09  |  1KB  |  49 lines

  1. // defines Otis
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_OTIS_GSH
  8. #define INCLUDED_OTIS_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "lasers.gsh"
  13. #include "defaults.gsh"
  14.  
  15. hierarchy Hcy_Otis
  16. {
  17.     file "units\otis.RIF"
  18.     name "pinch + rocket"
  19.     hotspot "dum flash"
  20. }
  21.  
  22. character Chr_Otis : Chr_DefaultGoodie
  23.     // otis is stronger than fred but can't aim as well or turn as quickly
  24. {
  25.     turning speed   0.5     // this is in revolutions per second
  26.     walking speed   1     // this is in animation cycles per second
  27.     weapon          Wpn_BlueLaser
  28.     strength        30    // initial strength points
  29.     aim             3    // how many degrees off target he can be at most
  30.     sight angle    70    // in degrees
  31.     sight range     8    // in metres
  32.     hearing range    20    // in metres
  33.     aggression    0.8    // from 0 to 1
  34. }
  35.  
  36. role Rol_Otis : Rol_DefaultRobot
  37. {
  38.     shape            Hcy_Otis
  39.     
  40.     character        Chr_Otis
  41.     
  42.     identifier       "otis"
  43. }
  44.                     
  45. ////////////////////////////////////////////////////////////////////////////////////
  46.  
  47. // end wrapper - for preventing multiple or recursive inclusions
  48. #endif // !INCLUDED_OTIS_GSH
  49.